<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
<!-- 编辑器公式插件 -->
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/addKityFormulaDialog.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/getKfContent.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/defaultFilterFix.js"></script>
<div class="span10" id="datacontent">

    <ul class="breadcrumb">
        <li><a href="/exercise/index/index">剑雅真题</a> <span class="divider">/</span></li>
        <li><a href="/exercise/speak/index">口语练习</a> <span class="divider">/</span></li>
        <li class="active">修改题目</li>
    </ul>
    <form action="/exercise/speak/update-detail?cate_id=<?php echo $cate_id?>" method="post" class="form-horizontal">
        <fieldset>
            <div class="control-group">
                <label for="area" class="control-label">分类名称：</label>
                <div class="controls">
                    <input type="text" value="<?php echo isset($data['catName'])?$data['catName']:''?>" name="catName" readonly>
                </div>
            </div>

            <div class="control-group">
                <label for="area" class="control-label">描述：</label>
                <div class="controls" >
                    <textarea id="sss" name="description"><?php echo isset($data['description'])?$data['description']:''?></textarea>

                </div>
            </div>

            <div class="control-group">
                <label for="area" class="control-label">答案：</label>
                <div class="controls" >
                    <textarea id="sss2" name="alternatives"><?php echo isset($data['alternatives'])?$data['alternatives']:''?></textarea>

                </div>
            </div>

            <div class="control-group">
                <label for="area" class="control-label">解析：</label>
                <div class="controls">
                    <textarea name="analysis" style="width: 50%;height: 200px;"><?php echo isset($data['analysis'])?$data['analysis']:''?></textarea>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <button class="btn btn-primary" type="submit">提交</button>
                    <input type="hidden" name="id" value="<?php echo $id?>"/>
                    <input type="hidden" name="pid" value="<?php echo isset($_GET['id'])?$_GET['id']:''?>"/>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script>
    //实例化编辑器
    var o_ueditorupload = UE.getEditor('sss',
    {
        autoHeightEnabled:false
    });

    var o_ueditorupload2 = UE.getEditor('sss2',
    {
        autoHeightEnabled:false
    });
    

</script>
<script type="text/plain" id="sss"></script>
<script type="text/plain" id="sss2"></script>